package cn.e3mall.service;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

import cn.e3.common.pojo.EasyUIDataGridResult;
import cn.e3.common.utils.E3Result;
import cn.e3mall.pojo.TbItem;

@FeignClient(value = "manager-service")
public interface ItemService {

	@RequestMapping(value = "/getItemById")
	TbItem getItemById(long itemId);
	
	@RequestMapping(value = "/getItemList")
	EasyUIDataGridResult getItemList(@RequestParam("page")int page,@RequestParam("rows")int rows);
	
	
	@RequestMapping(value = "/ids")
	E3Result delItem(Long ids);
	
	@RequestMapping(value = "/updateTbItem")
	E3Result updateTbItem(@RequestParam("item")TbItem item,@RequestParam("desc")String desc);
	
	/**
	 * 商品上架
	 * @param ids
	 * @return
	 */

	/**
	 * 商品下架
	 * @param ids
	 * @return
	 */
	@RequestMapping(value = "/itemDesc")
	E3Result itemDesc(Long itemId);	
}
